package my.headfirstjava.strategy.v2;

/**
 * 橡胶鸭
 * 特点：不会飞
 */
public class RubberDuck extends Duck implements Flayable,Quackable {
 

 
	public void display() {
		System.out.println("I'm a rubber duckie");
	}

	@Override
	public void flay() {
		System.out.println("我不会飞");
	}

	@Override
	public void quack() {
		System.out.println("我不会叫");

	}
}
